<template>
    <div id="app">
        <el-form :model="loginForm" status-icon :rules="validateRules" ref="loginForm" label-width="100px"
                 class="demo-ruleForm">
            <el-form-item label="email" prop="email">
                <el-input type="email" name="email" v-model="loginForm.email" autocomplete="off"></el-input>
            </el-form-item>
            <el-form-item label="pass" prop="pass">
                <el-input type="password" name="pass" v-model="loginForm.password" autocomplete="off"></el-input>
            </el-form-item>
            <el-form-item>
                <!--                    <el-button type="primary" @click="submitForm("ruleForm")">提交</el-button>-->
                <el-button @click="resetForm('ruleForm')">重置</el-button>
            </el-form-item>
        </el-form>
    </div>
</template>

<script>

import commonValidateRules from "@/assets/utils/elFormValidate"

export default {
    name: 'App',
    components: {

    },
    data() {
        return {
            validateRules: commonValidateRules,
            loginForm: {
                email: "",
                password: ""
            }
        }
    },
    methods: {

    }
}


</script>

<style>
#app {
    text-align: center;
    margin: auto;
    margin-top: 300px;
    width: 320px;
}

</style>
